FROM golang:1.21.8
WORKDIR $GOPATH/a
COPY . $GOPATH/a
EXPOSE 8080
ENV GOPROXY https://goproxy.cn,direct
RUN go build -o a a.go
ENTRYPOINT ["./a"]